home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / HENSA / MISC / SHELL.ARC / Shell / h / Printf < prev    next >
Encoding:
Text File  |  1994-08-20  |  1.1 KB  |  32 lines

  1. #ifndef __Shell_Printf_h
  2. #define __Shell_Printf_h
  3.  
  4. #ifndef __Shell_TextRect_h
  5. #include "Shell.TextRect.h"
  6. #endif
  7.  
  8. void    Shell_Printf( const char *fmt, ...);
  9.     /* This can be used exactly like printf. It outputs to    */
  10.     /* Shell_'s default text window. i.e. it just does a     */
  11.     /* Shell_TextRectPrintf( NULL, ...)            */
  12.     /* You could do a '#define printf Shell_Printf' to make    */
  13.     /* all text go to the shell window.            */
  14.  
  15. void    Shell_WaitPrintf( const char *fmt, ...);
  16.     /* This stores the text, and registers an event_NULL handler to print the text    */
  17.     /* on the next event_NULL. This allows you to call this function from within    */
  18.     /* a window-redraw function and output diagnostic info. Normally the Wimp calls    */
  19.     /* which Shell_TextRectPrint uses would confuse the Wimp if they were called in    */
  20.     /* the middle of a redraw.                            */
  21.  
  22. void    Shell_SafeWaitPrintf( const char *fmt, ...);
  23.     /* As Shell_WaitPrintf, but replaces all control characters by 'ยค'    */
  24.  
  25.  
  26. #define    Shell_Print( string)    Shell_TextRectPrint( NULL, string)
  27.     /* Use this for very long strings, as Shell_*Printf have a string-length limit     */
  28.     /* of Shell_stringMAX (=1023 at the moment).                    */
  29.  
  30. #endif
  31.  
  32.